package model.tokens;

import java.util.Stack;

import model.semantics.Node;
import model.semantics.VariableNode;

/**
 * A variable token is just an alphanumeric variable that holds a value.
 */

public class VariableToken<T> extends LiteralToken<T> {

	public VariableToken(String label) {
		super(label);
	}

	@Override
	public Node<T> makeNewInstance(Stack<Node<T>> nodes) {
		String label = getLabel();
		
		return new VariableNode<T>(label);		
	}
}
